<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
	<title>系统统计--物品盘点统计表</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>libs/bootstrap-3.3.7-dist/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/reset.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/iframe.css">
</head>
<body>
	<header id="mainHeader"></header>
	<div id="mainContent">
		<div id="mainContent_content">
			<div class="page_header"><a>物品盘点统计</a></div>
			<div class="search">
			<form action="<%=basePath %>inventoryLiquidation/selectInventoryLiquidationStatisticsList.do" method="post" class="form">
				<input type="hidden" name="currentPage" value="1">
				<p>
						<label>盘点单号</label>
						<input type="text" name=inventoryNumber value="${liquidationStatisticsListPage.inventoryNumber }" class="form-control"></input>
						<label>批次号</label>
						<input type="text" name="batchNumber" value="${liquidationStatisticsListPage.batchNumber }" class="form-control"></input>
						<label>物品条码</label>
						<input type="text" name="articleBarCode" value="${liquidationStatisticsListPage.articleBarCode }" class="form-control"></input>
						<label>物品名称</label>
						<input type="text" name="chineseName" value="${liquidationStatisticsListPage.chineseName }" class="form-control"></input>
				</p>
				<p>
						<label>仓库</label>
						<select name="warehouseID" class="form-control select">
							<option value="">全部</option>
							<c:forEach items="${warehouseList }" var="warehouse">
								<option value="${warehouse.warehousemanagementid }" <c:if test="${warehouse.warehousemanagementid==liquidationStatisticsListPage.warehouseID }">selected</c:if>>${warehouse.warehousename }</option>
							</c:forEach>
						</select>
						<label>所属类别</label>
						<select name="category" class="form-control select">
							<option value="">全部</option>
							<c:forEach items="${categoryList }" var="cat">
							<option value="${cat.categoryid }" <c:if test="${liquidationStatisticsListPage.category==cat.categoryid}">selected</c:if>>${cat.categoryname }</option>
							</c:forEach>
						</select>
						<label class="span1">提交时间</label>
						<input type="text" name="startTime" readonly onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" value="${liquidationStatisticsListPage.startTime }" class="form-control"></input>
						<label class="dateSpan">至</label>
						<input type="text" name="endTime" readonly onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" value="${liquidationStatisticsListPage.endTime }" class="form-control"></input>
					<label class="btn">
						<input type="submit" value="搜索"  class="btn btn1"></input>
						<input type="button" value="清空" onclick="clearSearchParam();"  class="btn btn2"></input>
					</label>
				</p>
			</form>
			</div>
			<div class="tableBox box">
				<table class="table table-bordered table_text_center">
					<thead>
						<tr>
							<th>序号</th>
							<th>盘点单号</th>
							<th>批次号</th>
							<th>所在仓库</th>
							<th>物品条码</th>
							<th>物品名称</th>
							<th>所属类别</th>
							<th>盘点前数量</th>
							<th>盘点后数量</th>
							<th>提交时间</th>
						</tr>
					</thead>
					<tbody class="trHoverColor">
						<c:forEach items="${liquidationStatisticsList }" var="pandian" varStatus="ids">
							<tr>
								<td>${ids.count + (liquidationStatisticsListPage.currentPage * liquidationStatisticsListPage.pageSize - liquidationStatisticsListPage.pageSize)}</td>
								<td>${pandian.inventoryNumber}</td>
								<td>${pandian.batchNumber}</td>
								<td>${pandian.warehouseName}</td>
								<td>${pandian.articleBarCode}</td>
								<td>${pandian.chineseName}</td>
								<td>${pandian.categoryName}</td>
								<td>${pandian.recordNumber}&nbsp;${pandian.salesUnit}（${pandian.purchaseSpecifications}${pandian.salesUnit}/${pandian.purchasingUnit}）</td>
								<td>${pandian.number}&nbsp;${pandian.salesUnit}（${pandian.purchaseSpecifications}${pandian.salesUnit}/${pandian.purchasingUnit}）</td>
								<td>${pandian.commitTime.substring(0,19)}</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<jsp:include page="/jsp/basic/page.jsp"></jsp:include>
		</div>
		<jsp:include page="/jsp/basic/prompt.jsp"></jsp:include>
		<jsp:include page="/jsp/stock/inventoryQuery/itemDetail.jsp"></jsp:include>
	</div>
	<script src="<%=basePath %>js/jquery-3.2.1.min.js"></script>
	<script src="<%=basePath %>libs/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
	<script src="<%=basePath %>libs/bootstrap-table-master/dist/bootstrap-table.js"></script>
	<script src="<%=basePath %>libs/bootstrap-table-master/dist/locale/bootstrap-table-zh-CN.min.js"></script>
	<script src="<%=basePath %>My97DatePickers/WdatePicker.js"></script>
	<script src="<%=basePath %>js/public.js"></script>
	<script type="text/javascript">
	
		function clearSearchParam(){
			$(".search input:text").val("");
			$(".search select").val("");
		}
	
		$(".goods_i").click(function(){
			showItemDetail($(this).attr("wupinID"));
		});
	</script>
</body>
</html>